<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no"/>
    <title>弹出购买页面</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css"/>
    <link rel="stylesheet" type="text/css" href="../css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../css/common.css"/>
    <link rel="stylesheet" type="text/css" href="../css/aui-flex.css"/>
    <link rel="stylesheet" type="text/css" href="../css/mui.min.css"/>
    <style>
        body {
            background: transparent;
            font-size: 14px;
            overflow: auto;
        }
        .aui-input-row:after{
            border: none !important;
        }
    </style>
</head>

<body>
<div class="contain ">
    <div class="aui-mask"></div>
    <div class="aui-input-row z-index99-positon aui-col-xs-12 " style="margin-top: 100px">
        <!--<label class="aui-input-addon colorWhite font-weight-700 ">选择支付方式</label>-->
        <ul class="aui-list-view payMethod">
            <li class="aui-list-view-cell">
                <input class="aui-radio noAfter" value="wxpay" style="margin: 3px 10px;" type="radio" name="radioMethod" checked>
                <img src="../image/wxpay.png" alt="" ><div class="aui-margin-l-10 aui-flex-row aui-flex-middle aui-margin-b-" style="display: inline-block;height: 32px;line-height: 32px;">微信支付</div>
            </li>
            <li class="aui-list-view-cell">
                <input class="aui-radio noAfter" value="alipay" style="margin: 3px  10px;" type="radio" name="radioMethod">
                <img src="../image/alipay.png" alt="" ><div class="aui-margin-l-10  aui-flex-row aui-flex-middle " style="display: inline-block;height: 32px;line-height: 32px;">支付宝支付</div>
            </li>
        </ul>

    </div>

    <footer class="aui-nav  z-index99">
        <div class="myBtn " onclick="surePay()">确定支付</div>
    </footer>
</div>
<script id="goodInfo-template" type="text/x-dot-template">


</script>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/doT.min.js"></script>
<script type="text/javascript" src="../script/jquery-1.11.3.js"></script>
<script type="text/javascript" src="../script/index.js"></script>
<script type="text/javascript" src="../script/mui.min.js"></script>
<script type="text/javascript">
    var goodId, companyName, money, orderId, orderNo;
    apiready = function () {
        api.parseTapmode();
        goodId = api.pageParam.goodId;
        $(".payMoney").text(money)
        //验证地址
        getStorageAll();
        //商品订单列表
//        alert(orderId)
//        getGoodInfo();
    }

    $(document).on("change", "#countInput", function () {
        var count = $(this).val();
        $(this).closest("li").find(".count").text(count);
        var price = $(this).closest("li").find(".price").text();
        var total = price * count;
        $(this).closest("li").find(".totalMoney").text(total);
    })
    $(".aui-mask").click(function () {
        closeFrame();
    })
    function surePay() {
        $(".payMethod").find("input:radio[name='radioMethod']").each(function () {
            if($(this).prop("checked")){
                if($(this).val()=="wxpay"){
                    openToTwo("")
                }else{

                }
            }
        })
    }


</script>

</html>
